package com.cloud.punish.tasklist.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cloud.punish.common.result.Quokka;
import com.cloud.punish.tasklist.bean.TaskListSearchCriteria;
import com.cloud.punish.tasklist.service.TaskListService;

@RestController
@RequestMapping("/punish/api/tasklist")
public class TaskListController {

	@Autowired
	private TaskListService taskListService;

	@RequestMapping("/search")
	public Quokka listTaskListData(@RequestBody TaskListSearchCriteria criteria) {
		return new Quokka(true, taskListService.listTaskListData(criteria));
	}
}
